﻿@model List<DDD_AOP_WCF.Domain.DTO.ProductDTO>
<table class="table table-condensed" style="border-collapse: collapse;">
    <thead>
        <!-- On rows -->
        <tr class="active">
            <th>编号</th>
            <th>名称</th>
            <th>打折</th>
            <th>更新日期</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
           
            <tr>
                <td class="active">@item.ProductID</td>
                <td class="success">@item.ProductName </td>
                <td class="warning">@item.Discount </td>
                <td class="danger">@string.Format("{0:yyyy-MM-dd}", item.CreateDate)</td>
                <td>@Html.ActionLink("删除", "Delete", new { id = item.ProductID }, new { @class = "btn btn-default" })&nbsp;&nbsp;@Html.ActionLink("修改", "Edit", new { id = item.ProductID }, new { @class = "btn btn-default" })</td>
            </tr>
        }
    </tbody>
</table>

